import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import './assets/css/global.less'
// 引入字体文件
import './assets/font/iconfont.css'
 import SocketService from './utils/socket_service'
// // 对服务端进行websocket的连接
 SocketService.Instance.connect()
// // 其他的组件  this.$socket
 Vue.prototype.$socket = SocketService.Instance
Vue.config.productionTip = false
axios.defaults.baseURL= 'http://127.0.0.1:8888/api/'
Vue.prototype.$http=axios
Vue.prototype.$echarts = window.echarts
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
